﻿
@model BulletinMvc.Models.BulletinItemCreateModel

@{
    ViewBag.Title = "Edit";
}

<h2>编辑</h2>
<div id="operate">
@*    @Html.ActionLink("返回", "Index")*@
       @using (Html.BeginForm("giveComment", "BulletinItem", FormMethod.Post))
        {
    @Html.Hidden("ProjectSN",Model.ProjectSN) 
      @Html.Hidden("BulletinYaMa",ViewData["BulletinYaMa"])          
     @Html.Hidden("YeMa",ViewData["YeMa"]) 
    <input type="submit" value="返回"  />
      }
</div>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Editcomfirm", "BulletinItem", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    @Html.Hidden("BulletinYaMa",ViewData["BulletinYaMa"])          
     @Html.Hidden("YeMa",ViewData["YeMa"]) 
     @Html.Hidden("BulletinID",ViewData["BulletinID"]) 
    <fieldset class="edit">
        <legend></legend>
        <div class="editor-field">
            @Html.HiddenFor(model => model.ProjectSN)
            @Html.ValidationMessageFor(model => model.ProjectSN)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProjectTitle)：
        </div>
        <div class="editor-field" style="padding-top:2px;">
            @Html.DisplayFor(model => model.ProjectTitle)
        </div>
                <div class="editor-field" style="padding-top:2px;display:none">
           @Html.EditorFor(model => model.ProjectTitle)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Country)：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Country)
            @Html.ValidationMessageFor(model => model.Country)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.School)：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.School)
            @Html.ValidationMessageFor(model => model.School)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Teachername)：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Teachername)
            @Html.ValidationMessageFor(model => model.Teachername)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Conclusion)：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Conclusion)
            @Html.ValidationMessageFor(model => model.Conclusion)
        </div>

        <div class="editor-label fly2">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <div class="editor-btn">
            <input type="submit" value="保存" />
        </div>
    </fieldset>
}
